#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    char a[100];
    int i;
    while (cin.getline(a,100))
    {
          cout<<char(a[0]+'A'-'a');
          for (i=1;i<strlen(a);i++)
          {
              if (a[i-1]==' ')cout<<char(a[i]+'A'-'a');
              else cout<<a[i];
          }
          cout<<endl;
    }
    return EXIT_SUCCESS;
}